﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace TravelManagement
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            MenuItem homeItem = new MenuItem() { Text = "Home", NavigateUrl = "Default.aspx" };
            NavigationMenu.Items.Add(homeItem);

             

            if (Request.IsAuthenticated)
            {
               
                MenuItem changePasswordItem = new MenuItem() { Text = "Change Password", NavigateUrl = "/Secure/ChangePassword.aspx" };
                NavigationMenu.Items.Add(changePasswordItem);
                   
            }

            MenuItem aboutItem = new MenuItem() { Text = "About", NavigateUrl = "About.aspx" };
            NavigationMenu.Items.Add(aboutItem);  
             

        }
    }
}
